<div id="pad-wrapper" class="new-user">
	<div class="row-fluid header">
		<h3>编辑医院事务</h3>
	</div>
	<div class="row-fluid form-wrapper">
		<!-- left column -->
		<div class="span9 with-sidebar">
			<div class="container">
				<form class="new_user_form form-horizontal" action="/staff/save" method="get" id="dataForm" enctype="multipart/form-data">
				<input type="hidden" name="id" id="id" value="<?php echo $row['s_id']?>" />
				<input type="hidden" name="uid" id="uid" value="<?php echo $row['u_id']?>" />
					<input type="hidden" name="h_id" id="h_id" value="<?php echo $row['h_id']?>" />
				<div class="field-box"></div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="real_name">姓名：</label>
				  <div class="controls col-lg-5">
					<input type="text" id="real_name" name="real_name"   autocomplete="off"   placeholder="姓名" data-bv-notempty="" data-bv-notempty-message="姓名不能为空" value="<?php echo $row['real_name']?>" />
					</div>
				</div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="description">性别：</label>
				  <div class="controls col-lg-5">
					  <select  id="sex" name="sex" >
						  <option value ="0" <?php if( $row['sex'])echo 'selected = "selected"'; ?>">女</option>
						  <option value ="1" <?php if( $row['sex'] != 0)echo 'selected = "selected"'; ?>>男</option>
					  </select>

				  </div>
				</div>
				<div class="control-group form-group span12">
					<label class="control-label" for="description">手机号：</label>
					<div class="controls col-lg-5">
						<input type="text" id="phone" name="phone" placeholder="手机号"  value="<?php echo $row['phone']?>"> </input>
					</div>
				</div>
					<!--
				<div class="control-group form-group span12" style="display: none;">
					<label class="control-label" for="description">微信昵称：</label>
					<div class="controls col-lg-5">
						<input type="text" id="wx" name="wx" placeholder="微信昵称"  value="<?php echo $row['name']?>"> </input>
					</div>
				</div>
				<div class="control-group form-group span12" style="display: none;">
					<label class="control-label" for="description">OpenId：</label>
					<div class="controls col-lg-5">
						<input type="text" id="openId" name="openId" placeholder="openId"  value="<?php echo $row['wxid']?>"> </input>
					</div>
				</div>
				-->
				<div class="span12 field-box"></div>
				<div class="control-group form-group span12 actions">
				  <label class="control-label"></label>
				  <div class="controls col-lg-5">
					  <button type="submit" id="btn-edit" class=" btn-flat primary">修改</button></li>
				  </div>
				</div>
				</form>
			</div>
		</div>
		<!-- side right column -->
		<div class="span3 form-sidebar pull-right">
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#dataForm').bootstrapValidator({
				message: 'This value is not valid',
				feedbackIcons: {
					valid: 'glyphicon glyphicon-ok',
					invalid: 'glyphicon glyphicon-remove',
					validating: 'glyphicon glyphicon-refresh'
				},
				fields: {
					phone: {
						message: '手机号不符合规则',
						validators: {
							notEmpty: {
								message: '手机号是必填项，不能为空'
							}
						}
					},
					real_name: {
						message: '姓名不符合规则',
						validators: {
							notEmpty: {
								message: '姓名是必填项，不能为空'
							}
						}
					},
					address: {
						message: '地址不符合规则',
						validators: {
							notEmpty: {
								message: '地址是必填项，不能为空'
							}
						}
					}
				}
			});
		});
//		$(document).ready(function() {
//			$("#btn-edit").click(function(e){
//				e.preventDefault();
//				var id=$("#id").val();
//				var uid=$("#uid").val();
//				var phone=$("#phone").val();
//				var sex=$("#sex").val();
//				var real_name=$("#real_name").val();
//				window.location.href="/staff/save?id="+id+"&phone="+phone+"&sex="+sex+"&real_name="+real_name+"&uid="+uid;
//			});
//		});
	</script>
</div>